(function() {
  $(function() {
    var _tempTeamStart, _tempTeamTotal;
    _tempTeamTotal = $("#famous_content").children().length;
    _tempTeamStart = 0;
    $(".left_qiehuan_div").click(function(e) {
      $("#famous_content").children().eq(_tempTeamStart).hide();
      _tempTeamStart -= 2;
      if (_tempTeamStart < 0) {
        _tempTeamStart = _tempTeamTotal - 1;
      }
      return $("#famous_content").children().eq(_tempTeamStart).fadeIn(500);
    });
    $(".right_qiehuan_div").click(function(e) {
      $("#famous_content").children().eq(_tempTeamStart).hide();
      _tempTeamStart += 2;
      if (_tempTeamStart > _tempTeamTotal - 1) {
        _tempTeamStart = 0;
      }
      return $("#famous_content").children().eq(_tempTeamStart).fadeIn(500);
    });
    $("#team_nav1").click(function(e) {
      $(this).addClass("on");
      $("#team_nav2").removeClass("on");
      $(".famous_div").fadeIn(500);
      return $(".team_div").hide();
    });
    return $("#team_nav2").click(function(e) {
      $(this).addClass("on");
      $("#team_nav1").removeClass("on");
      $(".famous_div").hide();
      return $(".team_div").fadeIn(500);
    });
  });

}).call(this);
